//泛型
public class Test {
    public static void main(String[] args) {
        Integer a = 100;
        Integer b = 100;
        System.out.println(a == b);//true
        Integer a2 = 200;
        Integer b2 = 200;
        System.out.println(a2 == b2);//false
    }
    public static void main2(String[] args) {
        //拆箱
        Integer a = Integer.valueOf(10);
        int b = a;//自动拆箱
        int c = a.intValue();//显式拆箱
        double d = a.doubleValue();//显式拆箱 拆成douuble类型
        System.out.println(b);//10
    }
    public static void main1(String[] args) {
        //装箱：将一个基本数据类型 转换为 包装类型的过程
        //valueOf()
        int a = 10;
        Integer b = a;//自动装箱
        System.out.println(b);//10
        Integer c = Integer.valueOf(a);//显式装箱
        System.out.println(c);//10

    }
}
